package com.example.juc.big_talk_concurrent.chapter2.article1;

public class Client {

    /**
     * synchronized是可重入锁
     */
    public synchronized void fun1() {
        System.out.println("fun1...");
        fun2();
    }

    private synchronized void fun2() {
        System.out.println("fun2...");
    }

    public static void main(String[] args) {
        Client client = new Client();
        client.fun1();
    }
}
